package com.newsproject.pojo;



import Util.FormatTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private String userName;    // 用户名
    private int userId;         //用户id
    private String passWord;    //密码
    private String email;       //邮箱
    private int gender;         //性别  0男 1 女
    private int adminStatus;    //用户状态 0普通用户 1管理员
    private int memberStatus;   //会员状态 0普通用户 1会员用户 2超级用户
    private Date createTime;  //注册时间
    private String avatar;      //头像地址
    private int followerCount;  //粉丝数量
    private int likeCount;      //关注数量
    private String introduction;//简介
    private String address;     //地址
    private int verifiedStatus;//0未认证 1认证中 2认证成功 3认证失败
    private int prizeCount;     // 获赞数量
    private String verificationInfo; // 认证信息;

  public String getCreateTime(){
      return FormatTime.formatDateTime(createTime);
  }
}